import request from "@/request/index.js"

// 登录
export const login = (data) => {
	return request({
		url:'/api/user/login',
		data,
		method: 'POST',
	});
};

// 注册
export const register = (data) => {
	return request({
		url:'/yonghuxinxi/register',
		data,
		method: 'POST',
	});
};
